

        
        <div class="form" id="consulta">
    
        
        <form id="c" action="#" method="post" onsubmit="consultar(); return false">

            <table style="width: 100%">
                <tr>
                    <td>
                        <br/><br/>
                    </td>
                    <td>
                        <input type="text" name="parametro" id="parametro" size="32" title="teclee el nombre del producto" autofocus="autofocus"/>
                        <input type="submit" value="Buscar" />
                    </td>
                </tr>
            </table>
                

                
        </form>
    <script type="text/javascript">
    $(function() {
		

		$( "#parametro" ).autocomplete({
			source: "../controlador/BuscarProductos.php",
			minLength: 2,
			select: function( event, ui ) {
				ui.item ?
                                    consultar():
					"Nothing selected, input was " + this.value;
			}
		});
            });
</script>
        </div>


